package com.feib.stms.batch.service;

import java.io.Serializable;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;


import com.feib.stms.batch.dao.MessageQueueJdbcDao;

import com.feib.stms.batch.domain.MessageQueue;

@Service("messageQueueService")
public class MessageQueueService implements Serializable{
	
	private static final long serialVersionUID = -2280586809962751281L;


	protected Logger logger = LoggerFactory.getLogger(this.getClass());

	
	@Resource(name="messageQueueJdbcDao")
	private MessageQueueJdbcDao messageQueueJdbcDao;
	
	
	public int insert(MessageQueue messageQueue)
	{
		return this.messageQueueJdbcDao.insert(messageQueue);
	} 



	public int update(MessageQueue messageQueue) 
	{
		return this.messageQueueJdbcDao.update(messageQueue);
	}
	
	public MessageQueue  findMessageQueueByPk(Long messageQueuePk) 
	{
		return this.messageQueueJdbcDao.getMessageQueueByPk(messageQueuePk);
	}
	
	public MessageQueue  findMessageQueueByMessageId(String messageId) 
	{
		return this.messageQueueJdbcDao.getMessageQueueByMessageId(messageId);
	}



}
